<script>
    var a; // var声明变量提升导致的
    console.log(a);
    a = 1;

    let b = 2;
    console.log(b);
</script>